package com.fyzk.activity.lottery.basketball.fragment;

import android.app.Activity;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.fyzk.adapter.JCLQSFAdapter;
import com.fyzk.utils.LogUtil;
import com.fyzk.utils.LotteryIDUtils;

/**
 * 胜负玩法
 * 
 * @author miao
 * 
 */
public class BasketballSFFragment extends BasketballWFBaseFragment {
	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		return super.onCreateView(inflater, container, savedInstanceState);
	}
	
	
	@Override
	public void onResume() {
		// TODO Auto-generated method stub
		super.onResume();
		LogUtil.d("onResume");
		if(!isDanguan){
			notifyList();
		}
	}
	
	

	@Override
	public String getTextStr() {
		// TODO Auto-generated method stub
		return "胜负";
	}

	@Override
	protected int getLotteryId() {
		// TODO Auto-generated method stub
		return LotteryIDUtils.JLSF_LOTTERY_ID_INT;
	}

	@Override
	public void onAttach(Activity activity) {
		// TODO Auto-generated method stub
		super.onAttach(activity);
	}

	@Override
	protected void adapterChange() {
		// TODO Auto-generated method stub
		LogUtil.d("adapterChange>>>" + isDanguan);
		if (adapter == null) {
			adapter = new JCLQSFAdapter(getActivity(), infos);
			adapter.setOnJCLQTongJiListener(activity);
			exListView.setAdapter(adapter);
			for (int i = 0; i < adapter.getGroupCount(); i++) {
				exListView.expandGroup(i);
			}
		} else {
			adapter.notifyDataSetChanged();
		}

	}

}
